#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
    char *buffer;
    int size, count, i;
    FILE *fd;
 
    if (argc != 3) {
        printf("usage: %s blocksie blockcount\n", argv[0]);
        exit(1);
    }
 
    fd = fopen("bufio.out", "w"); 

    size = atoi(argv[1]);
    count = atoi(argv[2]);

    buffer = malloc(size);
    
    for (i = 0; i < count; i++) {
       fwrite(buffer, size ,1, fd); 
    }

    fclose(fd);

        
    return 0;
}
//time ./bufferio 100 10000/
